package a.a;

import a.c.e;
import a.c.k;
import a.c.q;
import a.c.w;
import a.c.*;

class g
{
  static void a(q paramq, x paramx, k paramk, boolean paramBoolean)
  {
    int n = m.b;
    boolean bool = m.a;
    double[] arrayOfDouble = new double[paramq.m()];
    int i = 0;
    a.c.m localm = paramq.w();
    do
    {
      do
      {
        if (!localm.e()) {
          break;
        }
        arrayOfDouble[i] = paramk.getDouble(localm.a());
        i++;
        localm.f();
      } while (!bool);
    } while (n != 0);
    int j = paramq.k();
    double[][] arrayOfDouble1 = new double[j][j];
    fb.a(paramq, paramBoolean, arrayOfDouble, arrayOfDouble1);
    w localw = paramq.v();
    int k = 0;
    do
    {
      if (k == j) {
        break;
      }
      double d = 0.0D;
      int m = 0;
      if (m != j)
      {
        d += arrayOfDouble1[k][m];
        m++;
      }
      for (;;)
      {
        if (n == 0) {
          if (!bool)
          {
            if (!bool) {
              break;
            }
            paramx.a(localw.d(), 1.0D / d);
            localw.f();
            if (n != 0) {
              continue;
            }
            k++;
          }
        }
      }
    } while (!bool);
  }
  
  static void a(q paramq, x paramx, boolean paramBoolean)
  {
    int j = m.b;
    boolean bool = m.a;
    double[] arrayOfDouble = new double[paramq.k()];
    w localw = paramq.v();
    label116:
    label118:
    do
    {
      do
      {
        if (!localw.e()) {
          return;
        }
        e locale = localw.d();
        double d = 0.0D;
        fb.a(paramq, locale, paramBoolean, arrayOfDouble);
        int i = 0;
        do
        {
          if (i == paramq.k()) {
            break;
          }
          d += arrayOfDouble[i];
          i++;
          if (j != 0) {
            break label118;
          }
          if (bool) {
            break label116;
          }
        } while (!bool);
        paramx.a(locale, 1.0D / d);
      } while (j != 0);
      localw.f();
    } while (!bool);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.a.g

 * JD-Core Version:    0.7.0.1

 */